package com.hngy.xpq.shoppingcartmodule.bean;

import androidx.lifecycle.LiveData;

public class Shop extends LiveData<Shop> {

    int id;
    String image;
    String name;
    int price;
    String bus;
    float dis;
    String time;
    String des;

    public int getId() {
        return id;
    }

    public String getImage() {
        return image;
    }

    public String getName() {
        return name;
    }

    public int getPrice() {
        return price;
    }

    public String getBus() {
        return bus;
    }

    public float getDis() {
        return dis;
    }

    public String getTime() {
        return time;
    }

    public String getDes() {
        return des;
    }

    public void setId(int id) {
        this.id = id;
        postValue(this);
    }

    public void setImage(String image) {
        this.image = image;
        postValue(this);
    }

    public void setName(String name) {
        this.name = name;
        postValue(this);
    }

    public void setPrice(int price) {
        this.price = price;
        postValue(this);
    }

    public void setBus(String bus) {
        this.bus = bus;
        postValue(this);
    }

    public void setDis(float dis) {
        this.dis = dis;
        postValue(this);
    }

    public void setTime(String time) {
        this.time = time;
        postValue(this);
    }

    public void setDes(String des) {
        this.des = des;
        postValue(this);
    }

    @Override
    public String toString() {
        return "Shop{" +
                "id=" + id +
                ", image='" + image + '\'' +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", bus='" + bus + '\'' +
                ", dis=" + dis +
                ", time='" + time + '\'' +
                ", des='" + des + '\'' +
                '}';
    }
}
